<template>
  <div style="max-width: 300px">
    <Captcha ref="captcha" use-trigger image="/picture-2.jpg"></Captcha>
  </div>
  <br />
  <Button type="primary" @click="captcha?.reset()">
    重置验证
  </Button>
</template>

<script setup lang="ts">
import { ref } from 'vue'

import type { CaptchaExposed } from 'vexip-ui'

const captcha = ref<CaptchaExposed>()
</script>
